package com.example.design.factory.version2;

public class FactoryPro {

    public  static final   String QQ="QQ";
    public  static   final   String  WX="WX";

    public  static SendMagger Pro(String type){


        SendMagger sendMagger=null;
        switch (type){
            case "QQ":
                sendMagger=new QQsend();
                break;
            case "WX":
                sendMagger=new WXsennd();
                break;
        }

        return sendMagger;
    }
}
